package cn.bs.busuo.account.dao.persist.mapper;

import cn.bs.busuo.account.pojo.entity.GoodFavorite;
import cn.bs.busuo.account.pojo.vo.FavoriteGoodVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface GoodFavoriteMapper extends BaseMapper<GoodFavorite> {
    int selectFavoriteGoodIfExits(Long goodId, Long userId);

    List<FavoriteGoodVO> listFavoriteGood(Long id);

    int deleteByUserIdAndGoodId(Long goodId, Long userId);
}
